github.com/klauspost/compress/zstd.history.b (field)

60 uses

	github.com/klauspost/compress/zstd (current package)
		blockdec.go#L251: 			b.dst = hist.b
		blockdec.go#L252: 			hist.b = nil
		blockdec.go#L261: 			hist.b = b.dst
		blockdec.go#L492: 	err = hist.decoders.decodeSync(hist.b[hist.ignoreBuffer:])
		blockdec.go#L673: 	hbytes := hist.b
		blockdec.go#L701: 		hist.b = hist.b[:0]
		blockdec.go#L706: 			println("Finished block with ", len(b.sequence), "sequences. Added", len(b.dst), "to history, now length", len(hist.b))
		decoder.go#L514: 			println("History trimmed:", len(d.frame.history.b), "decoded already:", d.syncStream.decodedFrame)
		decoder.go#L516: 		histBefore := len(d.frame.history.b)
		decoder.go#L523: 		d.current.b = d.frame.history.b[histBefore:]
		decoder.go#L525: 			println("history after:", len(d.frame.history.b))
		decoder.go#L717: 	frameHistCache := d.frame.history.b
		decoder.go#L741: 				if cap(hist.b) < hist.allocFrameBuffer {
		decoder.go#L743: 						hist.b = frameHistCache
		decoder.go#L745: 						hist.b = make([]byte, 0, hist.allocFrameBuffer)
		decoder.go#L749: 				hist.b = hist.b[:0]
		decoder.go#L782: 					println("execute with history length:", len(hist.b), "window:", hist.windowSize)
		decoder.go#L811: 		frameHistCache = hist.b
		decoder.go#L939: 	d.frame.history.b = frameHistCache
		framedec.go#L331: 	saved := d.history.b
		framedec.go#L334: 	d.history.b = dst
		framedec.go#L375: 		if uint64(len(d.history.b)-crcStart) > d.o.maxDecodedSize {
		framedec.go#L376: 			println("runDecoder: maxDecodedSize exceeded", uint64(len(d.history.b)-crcStart), ">", d.o.maxDecodedSize)
		framedec.go#L380: 		if d.o.limitToCap && len(d.history.b) > cap(dst) {
		framedec.go#L381: 			println("runDecoder: cap exceeded", uint64(len(d.history.b)), ">", cap(dst))
		framedec.go#L385: 		if uint64(len(d.history.b)-crcStart) > d.FrameContentSize {
		framedec.go#L386: 			println("runDecoder: FrameContentSize exceeded", uint64(len(d.history.b)-crcStart), ">", d.FrameContentSize)
		framedec.go#L394: 			println("runDecoder: FrameContentSize", uint64(len(d.history.b)-crcStart), "<=", d.FrameContentSize)
		framedec.go#L397: 	dst = d.history.b
		framedec.go#L399: 		if d.FrameContentSize != fcsUnknown && uint64(len(d.history.b)-crcStart) != d.FrameContentSize {
		framedec.go#L410: 	d.history.b = saved
		history.go#L21: 	b []byte
		history.go#L36: 	h.b = h.b[:0]
		history.go#L76: 		h.b = h.b[:h.windowSize]
		history.go#L77: 		copy(h.b, b[len(b)-h.windowSize:])
		history.go#L82: 	if len(b) < cap(h.b)-len(h.b) {
		history.go#L83: 		h.b = append(h.b, b...)
		history.go#L89: 	discard := len(b) + len(h.b) - h.windowSize
		history.go#L90: 	copy(h.b, h.b[discard:])
		history.go#L91: 	h.b = h.b[:h.windowSize]
		history.go#L92: 	copy(h.b[h.windowSize-len(b):], b)
		history.go#L97: 	if cap(h.b) < h.allocFrameBuffer {
		history.go#L98: 		h.b = make([]byte, 0, h.allocFrameBuffer)
		history.go#L102: 	avail := cap(h.b) - len(h.b)
		history.go#L108: 	discard := len(h.b) - h.windowSize
		history.go#L109: 	copy(h.b, h.b[discard:])
		history.go#L110: 	h.b = h.b[:h.windowSize]
		history.go#L115: 	h.b = append(h.b, b...)